import http from "../utils/http2.js";

export function saveware (data) {
  return http.post("/v1/warehouse/save", data);
}
export function updateware (data) {
  return http.put("/v1/warehouse/update", data);
}
export function deleteware (id) {
  return http.delete("/v1/warehouse/delete", id);
}
export function changeWarehouseStatus(id, status) {
  return http.put("/v1/warehouse/status?id=" + id + "&status=" + status);
}
export function queryware (data) {
  return http.post("/v1/warehouse/query", data);
}
function queryTree() {
  return http.get("/v1/warehouse/tree");
}
